package com.example.user.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.example.base.BaseEntity;
import lombok.Data;
import org.apache.poi.ss.formula.functions.T;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 贾明祯
 * @ClassName User
 * @Date 2020/8/13 14:48
 */
@Data
@TableName("user")
public class User extends BaseEntity implements Serializable{
    private static final long serialVersionUID = -5134604348425973986L;

    @TableId
    private String id;
    /**
     * 昵称
     */
    @TableField("nickName")
    private String nickName;
    /**
     * 头像
     */
    @TableField("headPortrait")
    private String headPortrait;
    /**
     * 账号
     */
    @TableField("account")
    private String account;
    /**
     * 6位密码盐
     */
    @TableField("salt")
    private String salt;
    /**
     * 密码
     */
    @TableField("password")
    private String password;
    /**
     * 姓名
     */
    @TableField("name")
    private String name;
    /**
     * 性别
     */
    @TableField("sex")
    private Integer sex;
    /**
     * 邮箱
     */
    @TableField("email")
    private String email;
    /**
     * 年龄
     */
    @TableField("age")
    private Integer age;
    /**
     * 电话
     */
    @TableField("phone")
    private String phone;
    /**
     * 是否禁用
     */
    @TableField(value = "accountState",fill = FieldFill.INSERT)
    private Integer accountState;

}
